package com.iss.card.view.model;

import java.io.Serializable;

import android.R.string;
import android.text.GetChars;
import android.util.Log;

import com.iss.card.webservice.BaseModel;
/**
 * bean for store detail.
 */
public class StoreDetailModel extends BaseModel implements Serializable{
		
	/**
	 * 
	 */
	private static final long serialVersionUID = 6263055569808645334L;
	
	public String iD;
	public String sPID;
	public String storeID;
	public String prodUrl;
	public String width;
	public String height;
	public String statusFlag;

	public int left;
	public int right;
	public int top;
	public int bottom;
	
	public String pdcDeleted;
	public String pdcMarded;
	public final static String PRODUCT_ID = "productID";
	public final static String PRODUCT_PIC_URL = "productPicUrl";
	public final static String PRODUCT_PIC_W = "productPicW";
	public final static String PRODUCT_PIC_H = "productPicH";
	public final static String PRODUCT_DELETED = "productDeleted";
	public final static String PRODUCT_MARKED_STRING = "productMarked";
	
	public void setsPID (String pdcid){
		this.sPID = pdcid;
	}
	public String getsPID (){
		
		return sPID;
	}

	public void setprodUrl (String url){
		this.prodUrl = url;
	}
	public String getprdUrl(){
		return prodUrl;
	}
	public void setPdcDeleted(String isDeleted){
		this.pdcDeleted = isDeleted;
	}
	public String getPdcDeleted(){
		return pdcDeleted;
	}
	public void setPdcMarked(String isMarked){
		this.pdcMarded = isMarked;
	}
	public String getPdcMarked(){
		return pdcMarded;
	}
	public void setHeight(String height){
		this.height = height;
	}
	public String getHeight(){
		return height;
	}
	public void setWidth(String width){
		this.width = width;
	}
	public String getWidth(){
		return width;
	}
	@Override
	public void addValues(String tempString, String valueString,
			BaseModel baseMode) {
//		Log.e("kitexy debug","the tempString is ==> " + tempString + ";valueString = " + valueString);
		if(null == tempString){
			return;
		}
		if (tempString.equals(PRODUCT_ID)){
			setsPID(valueString);
		}else if (tempString.equals(PRODUCT_PIC_URL)){
			setprodUrl(valueString);
		}else if (tempString.equals(PRODUCT_MARKED_STRING)){
			setPdcMarked(valueString);
		}else if (tempString.equals(PRODUCT_DELETED)){
			setPdcDeleted(valueString);
		}else if (tempString.equals(PRODUCT_PIC_H)){
			setHeight(valueString);
		}else if(tempString.equals(PRODUCT_PIC_W)){
			setWidth(valueString);
		}
		baseMode = this;
	}

}
